home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Calling System Command in SUN C
- Followup-To: comp.lang.c,comp.lang.c++
- Date: 12 Mar 1996 14:26:40 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4i41j0$8nu@dawn.mmm.com>
- References: <4i1hlu$asm@ni1.ni.net>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Ed Thomson (ethomson@cinahl.com) wrote:
- > I was wondering if anyone could help me with this problem.
-
- > I am new to SUN C and am using version 3.0.1.
-
- > I would like to execute a system command such as mail or a shell
- > script I have generated and was wondering if anyone knew of an easy
- > way to do this within C.
-
- The system(3S) function does what you want. You pass it a string
- which is the command to execute. It returns the exit status of
- the command.
- --
- Kevin J. Hopps, 3M Company kjhopps@mmm.com
- Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-